class Person:

    def __init__(self, name=None, age=None, sex=None, phone_brand=None, phone_money=0,
                 phone_size=None, phone_time=None, phone_score=None, phone_capacity=None):
        self.__name = name
        self.__age = age
        self.__sex = sex
        self.__phone_brand = phone_brand
        self.__phone_money = phone_money
        self.__phone_size = phone_size
        self.__phone_time = phone_time
        self.__phone_score = phone_score
        self.__phone_capacity = phone_capacity

    def send_message(self, message):
        print(message)
        self.__phone_money -= 1

    def call_phone(self, number, time: int):
        if self.__phone_money < 1 or self.__phone_money is None:
            print('话费不足')
            return None
        if number is None:
            print('拨打号码为空')
            return None
        if time is None or time <= 0:
            return None
        elif time <= 10:
            self.__phone_money -= time
            self.__phone_score += time * 15
        elif time <= 20:
            money = (time - 10) * 0.8 + 10
            self.__phone_money -= money
            score = 10 * 15 + (time - 10) * 39
            self.__phone_score += score
        else:
            money = (time - 20) * 0.65 + 18
            self.__phone_money -= money
            score = 150 + 390 + (time - 20) * 48
            self.__phone_score += score
        return None
